/*
 * SiFiSy - A File System Simulator
 * Copyright (C) 2010  SevenSoft
 *
 * This file is part of SiFiSy.
 *
 * SiFiSy is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SiFiSy is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SiFiSy.  If not, see <http://www.gnu.org/licenses/>.
 */

package sifisy.newgui;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * @author luca
 * @version %I%, %G%
 * @createData 22/05/2010
 */
public class SifisyTreeNode extends DefaultMutableTreeNode {
    private String name;
    private int tabIndex;

    public SifisyTreeNode(String name) {
        super(name);

        this.name = name;
        tabIndex = -1;
    }

    public String getName() {
        return name;
    }

    public int getTabIndex() {
        return tabIndex;
    }

    public void setName(String name) {
        this.name = name;
        this.userObject = name;
    }

    public void setTabIndex(int index) {
        tabIndex = index;
    }
}
